package com.example.ball.Service;

import com.example.ball.Dao.UserDao;
import com.example.ball.Entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("UserService")
public class UserService {

//    @Autowired
//    private UserDao userDao;

    public boolean checkLogin(String username, String password){

        if (username.equals("") || password.equals("")){
            return false;
        }

//        User userInfo = userDao.checkLogin(username, password);
//
//        if (userInfo == null){
//            return false;
//        }

        if (username.equals("admin") && password.equals("admin")){
            return true;
        }

        return false;
    }

}
